import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import { Observable } from 'rxjs';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get('/send')
  sendMessage(): Observable<string> {
    const value = Math.random().toString(36) + ' ';
    return this.appService.sendMessage(value);
  }
}
